﻿using HuaweiCloud.Dotnet.Samples.ESports.Main.Dtos;
using HuaweiCloud.Dotnet.Samples.ESports.Main.Entities;

namespace HuaweiCloud.Dotnet.Samples.ESports.Main.Service
{
    public interface IBindInfoService
    {
        /// <summary>
        /// 绑定用户和设备关系
        /// </summary>
        /// <param name="info">DTO</param>
        /// <param name="token">取消任务Token</param>
        /// <returns></returns>
        Task BindAsync(CreateBindInfoDto info, CancellationToken token = default);
        /// <summary>
        /// 解绑用户和设备关系
        /// </summary>
        /// <param name="info">DTO</param>
        /// <param name="token">取消任务Token</param>
        /// <returns></returns>
        Task UnbindAsync(DeleteBindInfoDto info, CancellationToken token = default);
    }
}
